﻿<%@ Page Title="Mantenimiento de Notas" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FrmMantenimientoDeNotasAlumno.aspx.cs" Inherits="UI.DireccionAcademica.FrmMantenimientoDeNotasAlumno" %>
<%@ MasterType VirtualPath="~/Site.Master" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style20
        {
            height: 17px;
            width: 65px;
        }
        .style21
        {
            width: 267px;
        }
        
        .style22
        {
            width: 62px;
        }
        .style23
        {
            width: 183px;
        }
        .style24
        {
            width: 22px;
        }
        .style25
        {
            width: 267px;
            height: 17px;
        }
        .style26
        {
            width: 404px;
        }
        .style27
        {
            width: 10px;
        }
        .style28
        {
            width: 151px;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
         <center><H1>EDICION DE NOTAS</H1></center> <br />
        <table class="BTabla" style="width: 68%" __designer:mapid="d0">
            <tr __designer:mapid="d1">
                <td class="filaTabla" colspan="2" __designer:mapid="d2">
                    Datos Generales de alumno
                </td>
            </tr>
            <tr __designer:mapid="d3">
                <td class="style20" align="left" __designer:mapid="d4">
                    Código:
                </td>
                <td class="style25" __designer:mapid="d5" align="left">
                    <asp:Label ID="LabelCodigo" runat="server"></asp:Label>
                </td>
            </tr>
            <tr __designer:mapid="d7">
                <td class="style20" align="left" __designer:mapid="d8">
                    Nombre:
                </td>
                <td class="style21" __designer:mapid="d9" align="left">
                    <asp:Label ID="LabelNombre" runat="server"></asp:Label>
                </td>
            </tr>
            <tr __designer:mapid="db">
                <td class="style20" align="left" __designer:mapid="dc">
                    Especialidad:
                </td>
                <td class="style21" __designer:mapid="dd" align="left">
                    <asp:Label ID="LabelEspecialidad" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    <asp:Label ID="LabelError" runat="server"></asp:Label>
    <br />
    <br />

    <asp:UpdatePanel ID="panel1" runat="server">
    <Triggers>
        <%--<asp:PostBackTrigger ControlID="btnBuscar" />--%>        
        <asp:PostBackTrigger ControlID="gridListadoNotas" />

    </Triggers>
    <ContentTemplate>

    <table class="BTabla">
        <tr>
            <td class="style26">
                <table class="style1" style="width: 100%">
                    <tr>
                        <td class="filaTabla" colspan="8">
                            Filtrar Resultados
                        </td>
                    </tr>
                    <tr>
                        <td class="style24">
                        </td>
                        <td class="style23">
                        </td>
                        <td class="style8">
                        </td>
                        <td class="style22">
                        </td>
                        <td class="style28">
                        </td>
                    </tr>
                    <tr>
                        <td class="style24">
                            <asp:Label ID="Label1" runat="server" Text="Semestre"></asp:Label>
                        </td>
                        <td class="style23">
                            <asp:DropDownList ID="cboSemestre" runat="server" Height="18px" Width="171px">
                            </asp:DropDownList>
                        </td>
                        <td class="style9">
                            <asp:Label ID="Label3" runat="server" Text="Ciclo"></asp:Label>
                        </td>
                        <td class="style22">
                            <asp:DropDownList ID="cbCiclo" runat="server" Height="16px" Width="124px">
                            </asp:DropDownList>
                        </td>

                        <td class="style9">
                            <asp:Label ID="Label7" runat="server" Text="Cursos"></asp:Label>
                        </td>

                        <td class="style22">
           
                            <asp:DropDownList ID="comboCursos" runat="server">
                            </asp:DropDownList>
                            
                        </td>

                        <td class="style23">
                            <asp:CheckBox ID="checkComplentario" runat="server" Text="Complementario"  
                                Width="124px" />
                        </td>

                        <td class="style15" align="left">
                            <asp:Button ID="btnBuscar" runat="server" Height="34px" OnClick="btnBuscar_Click1"
                                Text="Buscar" Width="87px" CausesValidation="False" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style24">
                            &nbsp;
                        </td>
                        <td class="style23">
                            &nbsp;
                        </td>
                        <td class="style9">
                            &nbsp;
                        </td>
                        <td class="style22">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
        <asp:GridView ID="gridListadoNotas" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" CaptionAlign="Top" PageSize="15" 
            Width="718px" DataKeyNames="ID_Nota,ID_Complementario" 
            onselectedindexchanging="gridListadoNotas_SelectedIndexChanging1"
            onpageindexchanging="gridListadoNotas_PageIndexChanging" 
            onsorting="gridListadoNotas_Sorting" onsorted="gridListadoNotas_Sorted" 
            onrowcommand="gridListadoNotas_RowCommand">
            <Columns>
                <asp:BoundField HeaderText="ID_Nota" DataField="ID_Nota" Visible="False" />
                <asp:BoundField HeaderText="ID_Complementario" DataField="ID_Complementario" 
                    Visible="False" />
                <asp:BoundField HeaderText="SEMESTRE" DataField="SEMESTRE" />
                <asp:BoundField DataField="CICLOS" HeaderText="CICLOS" />
                <asp:BoundField HeaderText="CURSOS" DataField="CURSOS" Visible="False" />
                <asp:BoundField HeaderText="CURSO" DataField="DESCUR" 
                    SortExpression="CursoOrden" />
                <asp:BoundField DataField="FINAL" HeaderText="NOTA"></asp:BoundField>
                <asp:BoundField HeaderText="TIPO" DataField="TIPO" />


                <asp:CommandField SelectText="Editar" ShowSelectButton="True" SortExpression="Editar" />

            </Columns>
        </asp:GridView>

    <br />
    <br />

    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="panel1" DisplayAfter="0">
    <ProgressTemplate>
        <div style="background-color: Gray; filter:alpha(opacity=60); opacity:0.60; width: 100%; top: 0px; left: 0px; position: fixed; height: 100%;">
        </div>
          <div style="margin:auto;
              font-family:Trebuchet MS;
              filter: alpha(opacity=100);
              opacity: 1;
              font-size:small;
              vertical-align: middle;
              top: 45%;
              position: fixed;
              right: 45%;
              color: #275721;
              text-align: center;
              background-color: White;
              height: 100px; bottom: 296px;">
                <table style=" background-color: White; font-family: Sans-Serif; text-align: center; border: solid 1px #275721; color: #275721; width: inherit; height: inherit; padding: 15px;">
                <tr>
                <td style=" text-align: inherit;"><img src="../Imagenes/Gif/cargando.gif" alt="Loading"  /></td>
                <td style=" text-align: inherit;"><span style="font-family: Sans-Serif; font-size: medium; font-weight: bold; font">Cargando...</span></td>
                </tr>
                </table>
        </div>
    </ProgressTemplate>
    </asp:UpdateProgress>


    <asp:Panel ID="Panel2" runat="server" Width="681px">
    <table style="width: 880px" >
        <tr>
            <td align="center" class="style65" >
                &nbsp;</td>
            <td >
                <asp:TabContainer ID="taqContenedor" runat="server" ActiveTabIndex="0" 
                    Width="631px">
                    <asp:TabPanel runat="server" ID="TabPanel2" na HeaderText="Datos de Alumno">
                        <HeaderTemplate>
                            Modificacion de Nota Subsanada
                        </HeaderTemplate>
                        <ContentTemplate>
                            <table class="style1" align="left">
                                <tr>
                                    <td class="style46" colspan="5">
                                        <strong>Datos Generales</strong></td>
                                </tr>
                                <tr>
                                    <td class="style46" colspan="5">
                                        <asp:Label ID="LabelIDNota" runat="server" Visible="False"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        </td>
                                    <td class="style100">
                                        <asp:Label ID="Label4" runat="server" Text="Código"></asp:Label>
                                    </td>
                                    <td class="style102">
                                        <asp:Label ID="LabelCodigoNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style27">
                                        </td>
                                    <td class="style8">
                                        </td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        <asp:Label ID="Label5" runat="server" Text="Nombres"></asp:Label>
                                    </td>
                                    <td class="style94">
                                        <asp:Label ID="LabelNombreNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style27">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        <asp:Label ID="Label6" runat="server" Text="Especialidad"></asp:Label>
                                    </td>
                                    <td class="style94">
                                        <asp:Label ID="LabelEspecialidadNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style27">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        Curso</td>
                                    <td class="style94">
                                        <asp:Label ID="LabelCursosNota" runat="server"></asp:Label>
                                    </td>
                                    <td class="style27">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style8" colspan="5">
                                        <strong>Nota</strong></td>
                                </tr>
                                <tr>
                                    <td class="style93" colspan="5">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        Ciclo</td>
                                    <td class="style94">
                                        <asp:DropDownList ID="comboCiclos" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td class="style27">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        Nota</td>
                                    <td class="style94">

                                        <asp:TextBox ID="txtNota" runat="server" Width="55px" Height="16px"></asp:TextBox>
                                        <asp:RangeValidator ID="RangeValidatorNota" runat="server" 
                                            ErrorMessage="Nota no valida" MaximumValue="20" MinimumValue="0" 
                                            SetFocusOnError="True" Type="Integer" ForeColor="Red" 
                                            ControlToValidate="txtNota"></asp:RangeValidator>

                                    </td>
                                    <td class="style27">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        </td>
                                    <td class="style100">
                                        Observacion</td>
                                    <td class="style94" rowspan="2" style="margin-left: 40px">
                                        <asp:TextBox ID="txtObservacion" runat="server" Height="34px" TextMode="MultiLine" 
                                            Width="393px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="txtObservacion" ErrorMessage="Ingrese una observacion" 
                                            ForeColor="Red"></asp:RequiredFieldValidator>
                                    </td>
                                    <td class="style27">
                                        </td>
                                    <td class="style8">
                                        </td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        &nbsp;</td>
                                    <td class="style27">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99" colspan="3">
                                        &nbsp;</td>
                                    <td class="style27">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="style95">
                                        &nbsp;</td>
                                    <td class="style99">
                                        <asp:Button ID="btnActualizar" runat="server" CssClass="botoncito" Text="Grabar" 
                                            onclick="btnGrabar_Click" />
                                    </td>
                                    <td class="style94">

                                        <asp:Button ID="btnBorarr" runat="server" CssClass="botoncito" 
                                            Text="Eliminar" CausesValidation="False" 
                                            UseSubmitBehavior="False" onclick="btnBorarr_Click"  />   
                                    </td>
                                    <td class="style27">
                                        <asp:Button ID="btnCancelar" runat="server" CssClass="botoncito" 
                                            Text="Cancelar" onclick="btnCancelar_Click" CausesValidation="False" 
                                            UseSubmitBehavior="False"  />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:TabPanel>
                </asp:TabContainer>
            </td>
        </tr>
    </table>
    </asp:Panel>

   
     <asp:HiddenField ID="HiddenFiel1" runat="server" />
    <asp:ModalPopupExtender ID="mpeAgregaNota" runat="server" PopupControlID="Panel2"
        TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground" >
    </asp:ModalPopupExtender>

    </ContentTemplate>
    </asp:UpdatePanel>




</asp:Content>
